

cc.Class({
    extends: cc.Component,

    properties: {
        levelNum: cc.Label
    },


    // onLoad () {},

    setLevel:function(num){
        if( num <= 0 ){
            this.node.opacity = 0;
            return;
        }
        this.levelNum.string = num;
    },

    // update (dt) {},
});
